package com.wzy.observerPattern;

/**
 * @Author: wzy
 * @Date: 2022/10/11/9:29
 * @Description: 具体的被观察者
 */
public class ConcreteSubject extends Subject {
    @Override
    public void doSomething() {
        System.out.println("被观察者的事件发生改变");
        this.notifyObs();
    }
}
